-- 攻击
-- 强制提示请在这里添加
local attack = {
	{
		prefabs = {"ghost",},
		rotary = {{"blue", 1.5}},
	}, 
	{
		prefabs = {
					-- 以下数据未验证
					"lightninggoat", 
					"krampus",
					"crawlingnightmare", 
					"nightmarebeak", 
					"deer_blue", 
					"deer_red", 
					"birchnutdrake", 
					"moonpig", "pigguard", "mermguard","pigman", "bunnyman", "merm",
					"leif","leif_sparse",
					"koalefant_summer", "koalefant_winter", "grassgator", "beefalo", 
					"fruitdragon", "gnarwail","spat",
					-- 以下为呼吸验证, 值得信赖
					"frog", "knight","knight_nightmare",
					"powder_monkey",
					"prime_mate",
					"monkey",
					"houndcorpse", "hound", "icehound", "firehound", "mutatedhound", "clayhound", "hedgehound",
					"spider_healer", "spider_moon", "spider_dropper", "spider", "spider_warrior", "spider_hider", "spider_spitter",
					-- 补充
					"terrorbeak","crawlinghorror",
				},
		rotary = {{"blue", 3}},
	},{
		prefabs = {"koalefant_summer", "koalefant_winter",},
		rotary = {{"blue", 5}},
	}, {
		prefabs = {"rocky","eyeofterror_mini"},
		rotary = {{"blue", 4}},
	}, {
		prefabs = {"shark"},
		rotary = {{"green", 4}},
	}, {
		prefabs = {"tentacle","flup"},
		rotary = {{"green", 4}},
		always = true,
	},
    {
		prefabs = {"lunarthrall_plant"},	--亮茄击飞
		rotary = {{"blue", 4}},
	},
	{
		prefabs = {"lunarthrall_plant_vine_end"},	--亮茄钻地藤蔓
		rotary = {{"blue", 3}},
		quick = true,
	},
	{
		prefabs = {"deerclopseyeball_sentryward"},	--冰眼塔冰冻范围
		rotary = {{"blue", 3}},
	},
	-- BOSS
	{
		prefabs = {"daywalker"},
		rotary = {{"blue", 6}},
	}, 
	{
		prefabs = {"deerclops"},
		rotary = {{"blue", 12}},
	}, 
	{
		prefabs = {"warglet"},
		rotary = {{"blue", 3}},
	}, 
	{
		prefabs = {"klaus"},
		-- chomp
		rotary = {{"blue", 4.5},{"blue", 7},
		-- 变大后,统计一起吧
		-- {"blue", 9}
		},
	},
	{
		prefabs = {"minotaur"},
		rotary = {{"blue", 4.1-0.5},{"blue", 4.1+0.5}},
	},
	{
		prefabs = {"stalker","stalker_forest","stalker_atrium"},
		rotary = {{"blue", 2.9},{"blue", 10}},
	},
	{
		prefabs = {"shadow_knight"},
		rotary = {{"blue", 2.3},{"blue", 4.5}},
	},
	{
		prefabs = {"shadow_rook"},
		rotary = {{"blue", 8}},
	},
	{
		prefabs = {"alterguardian_phase2",},
		rotary = {{"blue", 4.5}, {"blue", 18}},
	}, 
	{
		prefabs = {"alterguardian_phase3",},
		rotary = {{"blue", 14},},
	}, 
	-- 暗影主教:emmmm, 分三个阶段, 依次为4,6,8 需要额外写函数, 暂且不表 
	-- 帝王蟹:emmmm, 需要额外写函数, 暂且不表 
	{
		prefabs = {"dirtpile"},
		rotary = {{"THISTLE", 2}},
		always = true,
	},
	-- "shadowthrall_hands","shadowthrall_horns","shadowthrall_wings",
	{
		prefabs = {"bearger"},
		rotary = {{"blue", TUNING.BEARGER_MELEE_RANGE+1}},		-- 参照DoArcAttack(stategraphs\SGbearger.lua)
	},
	{
		prefabs = {"mutatedbearger"},
		rotary = {{"blue", TUNING.BEARGER_MELEE_RANGE+3}},		--玩家自带0.5补偿,所以不用+1,AOE_RANGE_PADDING=3
	},
	{
		prefabs = {"mutatedwarg"},
		rotary = {{"blue", 1.7+3+3}, {"blue", TUNING.WARG_ATTACKRANGE}},
	},
	{
		prefabs = {"blackbear",},	--黑风大王
		rotary = {{"blue", 6},},
	},
	{
		prefabs = {"rhino3_red",},	--避暑大王
		rotary = {{"blue", 4.2},},
	},
	{
		prefabs = {"rhino3_blue",},	--避寒大王
		rotary = {{"blue", 4.2},},
	},
	{
		prefabs = {"rhino3_yellow",},	--避尘大王
		rotary = {{"blue", 4.2},},
	},
	{
		prefabs = {"myth_goldfrog",},	--聚宝金蟾
		rotary = {{"blue", 7},},
	},
	{
		prefabs = {"myth_small_goldfrog",},	--小金蟾
		rotary = {{"blue", 3},},
	},
	{
		prefabs = {"myth_nian",},	--年兽
		rotary = {{"blue", 4},},
	},
	{
		prefabs = {"siving_thetree",},	--子圭神木岩
		rotary = {{"blue", 25},},
		always = true,
	},
	{
		prefabs = {"siving_foenix",},	--子圭玄鸟母
		rotary = {{"blue", 3.5},},
	},
	{
		prefabs = {"siving_moenix",},	--子圭玄鸟公
		rotary = {{"blue", 3.5},},
	},
	{
		prefabs = {"elecarmet",},	--莱克阿米特
		rotary = {{"blue", 6},{"blue", 20}},
	}, 
	--永不妥协生物与BOSS
	{
		prefabs = {	--永不妥协生物
					"snowmong",--雪怪
					"knook",--发条马车兽
					"bight",--发条马教兽
					"shockworm",--深渊电鳗
					"viperworm",--深渊毒鳗
					"glacialhound",--冰川猎犬
					"lightninghound",--闪电猎犬
					"magmahound",--熔岩猎犬
					"sporehound",--孢子猎犬
					"scorpion",--蝎子
					"spider_trapdoor",--地穴蜘蛛
					"ancient_trepidation",--恐怖巨蛛
					"bushcrab",--灌木蜘蛛
					},
		rotary = {{"blue", 3}},
	},
	{
		prefabs = {"hoodedwidow",},	--黑寡妇
		rotary = {{"blue", 5},},
	}, 
	{
		prefabs = {"moonmaw_dragonfly",},	--月光龙蝇
		rotary = {{"blue", 5},},
	}, 
	{
		prefabs = {"moonmaw_lavae",},	--玻璃熔岩虫
		rotary = {{"blue", 2},},
	}, 
	{
		prefabs = {"mothergoose",},	--鹅妈妈
		rotary = {{"blue", 5.5},},
	}, 
	{
		prefabs = {"mock_dragonfly",},	--时令龙蝇
		rotary = {{"blue", 4},},
	}, 
	{
		prefabs = {"Roship",},	--发条车教兽
		rotary = {{"blue", 12},},
	}, 
	{
		prefabs = {"viperling",},	--暗影蠕虫
		rotary = {{"blue", 1.5},},
	},
	{
		prefabs = {"creepingfear",},	--恐怖巨钳
		rotary = {{"blue", 4},},
	}, 
	{
		prefabs = {"dreadeye",},	--恐怖之眼
		rotary = {{"blue", 2},},
	}, 
	{
		prefabs = {"ancient_trepidation_arm",},	--巨蛛之爪
		rotary = {{"blue", 4},},
	}, 
}

-- 仇恨
local target = {
	{
		prefabs = {"spore_moon"},
		rotary = {{"blue", 3}},
	},{
		prefabs = {"lightninggoat"},
		rotary = {{"blue", 8}},
	},
	{
		prefabs = {"bishop_nightmare", "rook_nightmare"},
		rotary = {{"blue", 12}},
	},{
		prefabs = {"knight_nightmare", "slurtle",},
		rotary = {{"blue", 10}},
	},{
		prefabs = {"wasphive"},
		rotary = {{"brown", 10}},
	},{
		prefabs = {"pigtorch"},
		rotary = {{"brown", 8}},
	},
	-- BOSS
	{
		prefabs = {"klaus", "dragonfly", "shadow_rook", "shadow_knight", "shadow_bishop"},
		rotary = {{"blue", 15}},
	},
	{
		prefabs = {"malbatross"},
		rotary = {{"green", 3}},
	},
	{
		prefabs = {"claywarg", "gingerbreadwarg"},
		rotary = {{"green", 4}},
	},
	{
		prefabs = {"archive_centipede"},
		rotary = {{"blue", 5}},
	},
	{
		prefabs = {"mushroombomb", "mushroombomb_dark"},
		rotary = {{"red", 3.5}},
		quick = true,
	},
	{
		prefabs = {"alterguardian_phase3trap",},
		rotary = {{"red", 3.5},},
		always = true,
	}, 
	{
		prefabs = {"eyeofterror", "twinofterror1","twinofterror2"},
		rotary = {{"blue", 3}},
	}, 
	-- 花里胡哨
	-- {
	-- 	prefabs = {"deer_blue",	"deer_red",},
	-- 	rotary = {{"blue", 12}},
	-- },  
	{
		prefabs = {"alterguardian_phase1",},
		rotary = {{"blue", 4.25}},
	}, {
		prefabs = {"bigshadowtentacle"},
		rotary = {{"white", 4}},				-- 这里的4是实际攻击距离，但在这里写却是仇恨距离（此处有深意）
		quick = true,
		always = true,
	},{
		prefabs = {"mutatedbearger"},
		rotary = {{"blue", TUNING.MUTATED_BEARGER_TARGET_RANGE}},
	},
	{
		prefabs = {"mutatedwarg"},
		rotary = {{"blue", TUNING.WARG_TARGETRANGE}},
	},
	{
		prefabs = {"mutateddeerclops"},
		rotary = {{"blue", 5.5}},		-- aoe冰冻范围，仇恨范围不写了
	},

}

-- 海星清远古
local starfish = {
	rook_nightmare = {
		bank = "rook",
		build = "rook_nightmare",
		anim = "idle",
	},
	knight_nightmare = {
		bank = "knight",
		build = "knight_nightmare",
		anim = "idle_loop",
	}, 
	bishop_nightmare = {
		bank = "bishop",
		build = "bishop_nightmare",
		anim = "idle_loop",
	},
	minotaur = {
		bank = "rook",
		build = "rook_rhino",
		anim = "idle",
	},
	antlion = {
		bank = "antlion",
		build = "antlion_build",
		anim = "idle",
	},
	klaus_sack = {
		bank = "klaus_bag",
		build = "klaus_bag",
		anim = "idle",
	},
}

-- 追踪
local track = {
	klaus_sack = "red",
	malbatross = "red",
	beequeenhivegrown = "yellow",
	antlion = "red",
	greengem = "green",
	yellowgem = "yellow",
	livingtree = "BROWN",
	livingtree_halloween = "brown",
	terrariumchest = "FUSCHIA",

	-- 岛屿冒险
	ia_messagebottle = "red",
	coral_brain_rock = "red",
	whale_bubbles = "red",
	dubloon = "YELLOW",
	
	-- musha
	musha_treasure2 = "MEDIUMPURPLE",

	-- 2023.6.6补充
	rock_moon_shell = "blue",
	mushgnome = "brown",
}

-- 部分建筑
-- 接口补充：如果想给一个建筑增加多格圆，只需将后面的对应表格中的第2个元素往后随便加数字（圆的半径）就行了
local click = {
	firesuppressor = {
		"blue",
		TUNING.FIRE_DETECTOR_RANGE,
	},
	winona_catapult =  {
		"blue",
		TUNING.WINONA_CATAPULT_MAX_RANGE,
	},
	lightning_rod = {
		"yellow",
		40,
	},
	oceantree = {
		"green",
		TUNING.SHADE_CANOPY_RANGE_SMALL,
	}, 
	oceantreenut = {
		"green",
		TUNING.SHADE_CANOPY_RANGE_SMALL,
	}, 
	oceantree_pillar = {
		"green",
		TUNING.SHADE_CANOPY_RANGE_SMALL,
	}, 
	winch = {
		"green",
		TUNING.SHADE_CANOPY_RANGE_SMALL,
	}, 
	watertree_pillar = {
		"green",
		TUNING.SHADE_CANOPY_RANGE,
	}, 
	eyeturret = {
		"blue",
		TUNING.EYETURRET_RANGE,
	},
	winona_spotlight = {
		"yellow",
		TUNING.WINONA_SPOTLIGHT_MAX_RANGE + TUNING.WINONA_SPOTLIGHT_MIN_RANGE,
	},
	moon_fissure = {
		"pink",
		TUNING.MOON_ALTAR_ESTABLISH_LINK_RADIUS,
	},
	moon_altar = {
		"pink",
		TUNING.MOON_ALTAR_ESTABLISH_LINK_RADIUS,
	},
	mushroom_light = {
		"pink",
		11,		-- 不准，手动测量的
	},
	mushroom_light2 = {
		"pink",
		11,		-- 不准，手动测量的
	},
	support_pillar = {
		"blue",
		TUNING.QUAKE_BLOCKER_RANGE,
	},
	support_pillar_scaffold = {
		"blue",
		TUNING.QUAKE_BLOCKER_RANGE,
	},
	support_pillar_dreadstone = {
		"blue",
		TUNING.QUAKE_BLOCKER_RANGE,
	},
	support_pillar_dreadstone_scaffold = {
		"blue",
		TUNING.QUAKE_BLOCKER_RANGE,
	},
	leif_idol = {
		"blue",
		TUNING.LEIF_IDOL_SPAWN_RADIUS,
	},
	deerclopseyeball_sentryward = {
		"blue",
		TUNING.DEERCLOPSEYEBALL_SENTRYWARD_RADIUS,
	},
    dragonflyfurnace = {
		"blue",
		9.5,	--龙鳞炉
	},
	lunarthrall_plant = {
		"blue",
		30, 12,	--亮茄寄生范围
	},
    sapling_moon = {
		"blue",
		30,	--月树苗预测亮茄寄生范围
	},
	voidcloth_umbrella = {
		"blue",
		16,	--暗影伞
	},
	phonograph = {
		"blue",
		8,	--留声机照顾植物范围
	},
	moonbase = {
		"blue",
		8,	--月台制冷范围
	},
	lava_pond = {
		"blue",
		10,	--岩浆池制热
	},
	lighter = {
		"yellow",
		2.5
	}
}

-- 部分物品
local hover = {
	panflute = TUNING.PANFLUTE_SLEEPRANGE,
	eyeturret = TUNING.EYETURRET_RANGE,
	wortox_soul = TUNING.WORTOX_SOULHEAL_RANGE,
	-- 书
	book_tentacles = 8, 		-- 3,8
	book_birds = 10,
	book_brimstone = 15,		-- 3,15
	book_sleep = 30,			-- 这个范围离谱
	book_gardening = 30,
	book_horticulture = 30,
	book_horticulture_upgraded = 30,
	book_silviculture = 30,
	book_fish = 10,				-- 事实上有偏移
	book_fire = TUNING.BOOK_FIRE_RADIUS,
	book_web = TUNING.BOOK_WEB_GROUND_RADIUS,
	book_temperature = TUNING.BOOK_TEMPERATURE_RADIUS,
	book_light = 3,
	book_light_upgraded = 3,
	book_rain = 4,
	book_research_station = TUNING.BOOK_RESEARCH_STATION_RADIUS,
	-- 火药
	gunpowder = TUNING.GUNPOWDER_RANGE,
	moon_altar = TUNING.MOON_ALTAR_ESTABLISH_LINK_RADIUS,
	-- 树精雕像
	leif_idol = TUNING.LEIF_IDOL_SPAWN_RADIUS,
	deerclopseyeball_sentryward =  TUNING.DEERCLOPSEYEBALL_SENTRYWARD_RADIUS,
    voidcloth_umbrella = 16,	--暗影伞
	phonograph = 8,	--留声机照顾植物范围
	singingshell_octave3 = 2,	--贝壳钟照顾植物范围
	singingshell_octave4 = 2,	--贝壳钟照顾植物范围
	singingshell_octave5 = 2,	--贝壳钟照顾植物范围

	lighter = 2.5,
}

-- 放置
local placer = {
	lightning_rod_placer = {
		"yellow",
		40,
	},
	eyeturret_item_placer = {
		"blue",
		TUNING.EYETURRET_RANGE,
	}
}

return {
    attack_range = attack,
    target_range = target,
	starfish_range = starfish,
	track_range = track,
	click_range = click,
	hover_range = hover,
	placer_range = placer,
}